package com.luo.search.quartz;

import com.luo.search.service.ISearchService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
public class QuartzJob implements Job {
    @Autowired
    private ISearchService service;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        service.loadSpuByPage();
        log.debug("更新es数据库信息");
    }
}
